package test.JUnitTest;

public class husband {
    private String name;
    private int age;
    private wife wife;

    public void Sethusband(String name ,int age){
        this.name=name;
        this.age=age;
    }
    public void wife(wife wife){
        this.wife=wife;
    }
    public String getwife(){
        return name+"的wife是"+wife.getName()+" "+wife.getAge();
    }
    public String getName(){
        return name;
    }
    public int getAge(){
        return age;
    }
}
